
<div *ngIf="agency">
    <h2><span>Agency</span> {{agency.id}}</h2>
    <hr>
    <jhi-alert-error></jhi-alert-error>
    <dl class="row-md jh-entity-details">
        <dt><span>Account Name</span></dt>
        <dd>
            <span>{{agency.accountName}}</span>
        </dd>
        <dt><span>Password</span></dt>
        <dd>
            <span>{{agency.password}}</span>
        </dd>
        <dt><span>Limit</span></dt>
        <dd>
            <span>{{agency.limit}}</span>
        </dd>
        <dt><span>Deadline</span></dt>
        <dd>
            <span>{{agency.deadline | date:'mediumDate'}}</span>
        </dd>
        <dt><span>Online</span></dt>
        <dd>
            <span>{{agency.online}}</span>
        </dd>
        <dt><span>Heard</span></dt>
        <dd>
            <span>{{agency.heard | date:'medium'}}</span>
        </dd>
        <dt><span>Status</span></dt>
        <dd>
            <span>{{agency.status}}</span>
        </dd>
        <dt><span>Agency Limit</span></dt>
        <dd>
            <span>{{agency.agencyLimit}}</span>
        </dd>
        <dt><span>Father</span></dt>
        <dd>
            <span>{{agency.father}}</span>
        </dd>
    </dl>

    <button type="submit"
            (click)="previousState()"
            class="btn btn-info">
        <span class="fa fa-arrow-left"></span>&nbsp;<span> Back</span>
    </button>

    <button type="button"
            [routerLink]="['/', { outlets: { popup: 'agency/'+ agency.id + '/edit'} }]"
            replaceUrl="true"
            class="btn btn-primary">
        <span class="fa fa-pencil"></span>&nbsp;<span> Edit</span>
    </button>
</div>
